package uz.gov.test;

import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import uz.gov.pages.HomePage;
import uz.gov.pages.NavigationPage;

/**
 * Created by IIGalytska on 07.04.14.
 */
public class RezetkaAutorizationTestNegative extends PrePostConditions{
    @DataProvider(name = "SignInTests")
    public Object[][] provideData() {

        return new Object[][] {
                //{ "angelina_goli41@ukr.net", "angelina goli", "http://my.rozetka.com.ua/"},
                { "angelina_goli41@ukr.net", "angelina goli1", "http://rozetka.com.ua/"},
                /**
                 { 2 , "http://rozetka.com.ua/phones-mp3-gps/c80257/"},
                 { 3 , "http://rozetka.com.ua/tv-photo-video/c80258/"},
                 **/

        };
    }

    @Test(dataProvider = "SignInTests")
    public void testSearch(String param1, String param2, String param3){

        HomePage home = new HomePage(driver);


        NavigationPage myPage = home.authorizationNegative(param1, param2);

        Assert.assertEquals(param3, myPage.checkPageUrl());
    }
























}
